﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="MaluJg.web.Poverty.Index" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>马陆镇扶贫帮困资金</title>
    <link href="../Style/Css/Css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../DatePicker/WdatePicker.js"></script>

    <script type="text/javascript" src="../FusionCharts/FusionCharts.js"></script>

    <script type="text/javascript" src="../Scripts/jquery.js"></script>
    <script type="text/javascript" src="../Scripts/common.js"></script>
    <script>
        function search1() {
            var ddl = document.getElementById('ddlVillage');

            location.href = 'Index.aspx?year=' + $("#tbYear").val() + "&v=" + escape(ddl.options[ddl.selectedIndex].text);


        }
        function OverChangeClass(obj) {
            if (obj.className != "Cur")
                obj.className = 'Over'
        }
        function ReturnClass(obj) {
            obj.className = obj.oldclass;
        }
        $(document).ready(function() {
            $("#tblReturn").hide();
            $("#chart").css("cursor", "pointer").click(function() {
                openDetail();
            });
            resetHeight();
            setInterval('resetHeight();', 500);

        });
        function openDetail() {
            $("#divMain").hide();            
            document.all('ifrDetail').src = "SLiveT.aspx?year=<%=Year %>&v=<%=HttpUtility.UrlEncode( Village) %>&nocache=" + Math.random();


        }
        function goBack() {
            location.href = "Index.aspx?year=<%=Year %>&v=<%=HttpUtility.UrlEncode( Village) %>";
        }
        function resetHeight() {
            if (ifrDetail.document.body != null) {
                var nheight = ifrDetail.document.body.scrollHeight;
                if (nheight < 400) {
                    nheight = 400;
                }
                document.all('ifrDetail').style.height = (nheight + 30) + 'px';

            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">   
    <div id="divMain">
        <table cellspacing="0" cellpadding="0" border="0" class="MainTable" width="100%"
            height="100%" style="">
            <tr>
                <td width="1">
                </td>
                <td id="main" valign="top">
                    <div id="sideBar">
                        <table cellspacing="0" cellpadding="0" border="0" class="" width="100%">
                            <tr>
                                <td class="TitleBar" colspan="3">
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr>
                                            <td class="MainTitle">
                                                马陆镇扶贫帮困资金
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr class="AdvancedSearch">
                                <td class="ToolBar" colspan="3">
                                    <table>
                                        <tr valign="middle">
                                            <td>
                                                &nbsp;&nbsp;年份：
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbYear" onclick="WdatePicker({dateFmt:'yyyy'})" runat="server" CssClass="WSCL_Input"></asp:TextBox>
                                            </td>
                                            <td>
                                                村别：
                                            </td>
                                            <td>
                                                <asp:DropDownList runat="server" ID="ddlVillage">
                                                </asp:DropDownList>
                                            </td>
                                            
                                            <td class="ToolMenu">
                                                <div class="Normal" oldclass="Normal" style="float: left; width: 70px" onmouseover="OverChangeClass(this);"
                                                    onmouseout="ReturnClass(this)">
                                                    <a href="javascript:search1();"><span>
                                                        <img src="../Images/Icon-Search.png" alt="查询" /></span><span>查询</span></a>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                            <td valign="bottom" align="right"><a href="javascript:goprev(0)" target="_self">上一年</a>&nbsp;</td>
                                <td style="text-align: center;width:610px;">
                                    <asp:Chart ID="chart" runat="server" Palette="BrightPastel" ImageType="Png" ImageUrl="~/TempImages/ChartPic_#SEQ(300,3)"
                                        BackColor="#D3DFF0" Width="600px" Height="280px" borderlinestyle="Solid" backgradienttype="TopBottom"
                                        BorderlineWidth="2" BorderlineColor="181, 64, 1">
                                        <Titles>
                                            <asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3"
                                                Text="马陆镇扶贫帮困资金" Alignment="TopLeft" ForeColor="26, 59, 105" Name="Title1">
                                            </asp:Title>
                                        </Titles>
                                        <Legends>
                                            <asp:Legend Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold"
                                                Enabled="False" TitleFont="Microsoft Sans Serif, 8pt, style=Bold">
                                            </asp:Legend>
                                        </Legends>
                                        <BorderSkin SkinStyle="Emboss"></BorderSkin>
                                        <Series>
                                        </Series>
                                        <ChartAreas>
                                            <asp:ChartArea Name="ca" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" BackSecondaryColor="White"
                                                BackColor="64, 165, 191, 228" ShadowColor="Transparent" BackGradientStyle="TopBottom">
                                                <AxisY LineColor="64, 64, 64, 64" IsLabelAutoFit="False">
                                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold"></LabelStyle>
                                                    <MajorGrid LineColor="64, 64, 64, 64"></MajorGrid>
                                                </AxisY>
                                                <AxisX LineColor="64, 64, 64, 64" IsLabelAutoFit="False">
                                                    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold"></LabelStyle>
                                                    <MajorGrid LineColor="64, 64, 64, 64"></MajorGrid>
                                                </AxisX>
                                            </asp:ChartArea>
                                        </ChartAreas>
                                    </asp:Chart>
                                </td><td valign="bottom" align="left"><a href="javascript:goprev(1)" target="_self">下一年</a>&nbsp;</td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <table cellspacing="0" cellpadding="0" border="0" class="" width="100%">
        <tr>
            <td align="center">
                <iframe width="100%" frameborder="0" src="PovertyTable.aspx?year=<%=Year %>&v=<%=Village %>"
                    id="ifrDetail" name="ifrDetail"></iframe>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
